<!DOCTYPE html>
<html>

<head>
  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  <title></title>
  <meta name="keywords" content="统一地图平台api">
  <meta name="description" content="统一地图平台api">
  <meta name="renderer" content="webkit">
  <meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1">
  <link href="./../script/api.css" rel="stylesheet">
</head>

<body class="restdemo-page">
  <div class="page_wrapper">
    <div data-tpl="" class="content-sidebar has_right">
      <div class="content">
        <div class="crumbs">
          您现在的位置：
          <a>开发</a>
          &gt;
          <a>资源搜索</a>
          &gt;
          <a>定位行政区划</a></div>
        <article>
          <h1 class="title">
            定位行政区划
            <span class="update-time">最后更新时间: 2020年08月19日</span>
          </h1>
          <div>
            <div class="md-container">
              <h2>调用示例</h2>
              <!-- <p>第一步、导入资源文件</p> -->
              <div class="md-demo-code-wrapper">
                <div class="md-demo-code-header"><a class="active">url</a></div>
                <div class="md-demo-code-content">
                  <div class="md-demo-code-content-item active">
                    <pre><code class="html hljs xml">
    http://${IP:PORT}/api/v1/search/adminByPoint?token=c29la2Rmd2Rla2tl&location=113.388651%2C23.172524
                    </code></pre>
                  </div>
                </div>
              </div>
              <p>参数说明:</p>
              <div class="md-atomic">
                <div class="table-container" style="width:100%;">
                  <table class="md-table">
                    <tbody>
                      <tr><th><p>名称</p></th><th><p>格式</p></th><th><p>值说明</p></th></tr>
                      <tr><td><p>location</p></td><td><p>以逗号分隔的经纬度</p></td><td><p>待查经纬度</p></td></tr>
                    </tbody>
                  </table>
                </div>
              </div>
              <h2>返回示例</h2>
              <div class="md-demo-code-wrapper">
                <div class="md-demo-code-header"><a class="active">json</a></div>
                <div class="md-demo-code-content">
                  <div class="md-demo-code-content-item active">
                    <pre><code class="html hljs xml">
  {
    "errcode": 0,
    "errmsg": "ok",
    "data": {
      "provinceCode": 440000,
      "cityCode": 440100,
      "districtCode": 440106,
      "province": "广东省",
      "city": "广州市",
      "district": "天河区",
      "centerLon": 113.264357,
      "centerLat": 23.128842
    }
  }
                                        </code></pre>
                  </div>
                </div>
              </div>
              <p>属性说明:</p>
              <div class="md-atomic">
                <div class="table-container" style="width:100%;">
                  <table class="md-table">
                    <tbody>
                      <tr><th><p>属性名称</p></th><th><p>属性说明</p></th></tr>
                      <tr><td><p>data.provinceCode</p></td><td><p>省级行政编码</p></td></tr>
                      <tr><td><p>data.cityCode</p></td><td><p>市级行政编码</p></td></tr>
                      <tr><td><p>data.districtCode</p></td><td><p>区级行政编码</p></td></tr>
                      <tr><td><p>data.province</p></td><td><p>省</p></td></tr>
                      <tr><td><p>data.city</p></td><td><p>市</p></td></tr>
                      <tr><td><p>data.district</p></td><td><p>区</p></td></tr>
                      <tr><td><p>data.centerLon</p></td><td><p>城市中心点经度</p></td></tr>
                      <tr><td><p>data.centerLat</p></td><td><p>城市中心点纬度</p></td></tr>
                    </tbody>
                  </table>
                </div>
              </div>
            </div>
          </div>
        </article>
      </div>
    </div>
  </div>
</body>

</html>